package com.sc.pb_user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 食谱表
 * </p>
 *
 * @author PBObserver
 * @since 2025-09-19 05:02:16
 */
@Getter
@Setter
@TableName("pb_recipe")
public class PbRecipe {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 食谱名称
     */
    @TableField("title")
    private String title;

    /**
     * 类型：pre-运动前, post-运动后, daily-日常
     */
    @TableField("type")
    private String type;

    /**
     * 热量(大卡)
     */
    @TableField("calorie")
    private Integer calorie;

    /**
     * 食材(JSON数组)
     */
    @TableField("ingredients")
    private String ingredients;

    /**
     * 步骤(JSON数组)
     */
    @TableField("steps")
    private String steps;

    /**
     * 封面图URL
     */
    @TableField("cover_img")
    private String coverImg;

    /**
     * 关联标签ID，逗号分隔
     */
    @TableField("tag_ids")
    private String tagIds;

    /**
     * 状态：1-启用，0-禁用
     */
    @TableField("status")
    private Boolean status;
}
